<table width="100%" height="31" border="0" cellspacing="0" cellpadding="0">
    <tr>
        <td style="border-bottom: 1px solid #B5BCC7"><img width="20" src="/images/1x1transparent.gif"></td>
        <? foreach($this->leftMenu as $itemName => $menuItem) {?>
            <?if($this->aclMvcManager->isControllerActionAllowed($menuItem['urlParams'])) { ?>
                <?if($this->selectedModule == $itemName) {?>
                    <td style="background: url(/images/tabs/active/left.png); background-repeat: no-repeat"><img width="2" src="/images/1x1transparent.gif"></td>
                    <td style="background: url(/images/tabs/active/background.png); background-repeat: repeat-x; padding-left: 10px; padding-right: 10px">
                        <nobr>
                        <a  style="text-decoration: none;" href="<?=$this->url($menuItem['urlParams'], null, true)?>">
                            <b><?=$this->translate($itemName)?></b>
                        </a>
                        </nobr>
                    <td style="background: url(/images/tabs/active/right.png); background-repeat: no-repeat"><img width="2" src="/images/1x1transparent.gif"></td>
                    <td style="border-bottom: 1px solid #B5BCC7"><img width="2" src="/images/1x1transparent.gif"></td>
                <? } else { ?>
                    <td style="background: url(/images/tabs/notactive/left.png); background-repeat: no-repeat"><img width="2" src="/images/1x1transparent.gif"></td>
                    <td style="background: url(/images/tabs/notactive/background.png); background-repeat: repeat-x; padding-left: 10px; padding-right: 10px">
                        <nobr>
                        <a  style="text-decoration: none;" href="<?=$this->url($menuItem['urlParams'], null, true)?>">
                            <b><?=$this->translate($itemName)?></b>
                        </a>
                        </nobr>
                    </td>
                    <td style="background: url(/images/tabs/notactive/right.png); background-repeat: no-repeat">
                        <img width="2" src="/images/1x1transparent.gif"></td>
                    <td style="border-bottom: 1px solid #B5BCC7"><img width="2" src="/images/1x1transparent.gif"></td>
                <? } ?>
            <? } ?>
        <? } ?>

        <?/*<td style="background: url(/images/tabs/notactive/left.png); background-repeat: no-repeat"><img width="2" src="/images/1x1transparent.gif"></td>
        <td style="background: url(/images/tabs/notactive/background.png); background-repeat: repeat-x; padding-left: 10px; padding-right: 10px"><nobr><a href="">Не активная</a></nobr></td>
        <td style="background: url(/images/tabs/notactive/right.png); background-repeat: no-repeat"><img width="2" src="/images/1x1transparent.gif"></td>
        <td style="border-bottom: 1px solid #B5BCC7"><img width="2" src="/images/1x1transparent.gif"></td>
        */?>
        <td width="100%" style="border-bottom: 1px solid #B5BCC7;"><img src="/images/1x1transparent.gif"></td>

        <? foreach($this->rightMenu as $itemName => $menuItem) {?>
            <? if($this->aclMvcManager->isControllerActionAllowed($menuItem['urlParams'])) { ?>
                <?if($this->selectedController == $itemName && $this->selectedModule == 'education') {?>
                    <td style="background: url(/images/tabs/active/left.png); background-repeat: no-repeat"><img width="2" src="/images/1x1transparent.gif"></td>
                    <td style="background: url(/images/tabs/active/background.png); background-repeat: repeat-x; padding-left: 10px; padding-right: 10px">
                        <nobr>
                        <a style="text-decoration: none;" href="<?=$this->url($menuItem['urlParams'], null, true)?>"><b><?=$this->translate($itemName)?></b></a>
                        </nobr>
                    <td style="background: url(/images/tabs/active/right.png); background-repeat: no-repeat"><img width="2" src="/images/1x1transparent.gif"></td>
                    <td style="border-bottom: 1px solid #B5BCC7"><img width="2" src="/images/1x1transparent.gif"></td>
                <? } else { ?>
                <td style="background: url(/images/tabs/notactive/left.png); background-repeat: no-repeat"><img width="2" src="/images/1x1transparent.gif"></td>
                <td style="background: url(/images/tabs/notactive/background.png); background-repeat: repeat-x; padding-left: 10px; padding-right: 10px">
                    <nobr>
                    <a style="text-decoration: none;" href="<?=$this->url($menuItem['urlParams'], null, true)?>">
                           <b><?=$this->translate($itemName)?></b>
                        </a>
                    </nobr>
                </td>
                <td style="background: url(/images/tabs/notactive/right.png); background-repeat: no-repeat"><img width="2" src="/images/1x1transparent.gif"></td>
                <td style="border-bottom: 1px solid #B5BCC7"><img width="2" src="/images/1x1transparent.gif"></td>
                <? } ?>
            <? } ?>
        <? } ?>
    <td style="border-bottom: 1px solid #B5BCC7"><img width="20" src="/images/1x1transparent.gif"></td>
    </tr>
</table>